group by codeigniter 3

95

group by codeigniter 3 -

$this->db->group_by(array("title", "date"));  
// Produces: GROUP BY title, date

codeigniter where_not_in -

$names = array('Frank', 'Todd', 'James');
$this->db->where_not_in('username', $names);
// Produces: WHERE username NOT IN ('Frank', 'Todd', 'James')

Comments

Submit
0 Comments